<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var stu = {
      id: 1001,
      name: 'tom',
      age: 12,
      friends: ['fairy', 'terry', 'larry'],
      clazz: {
        id: 1,
        name: '1班',
        desc: '已经有50个同学'
      }
    }
    console.log(stu);
  </script>
</head>

<body>

</body>

</html>